package com.example.playlive.factory

import okhttp3.Interceptor

/**
 * 类简要描述
 * <p/>
 * <p>
 * 类详细描述
 * </p>
 *
 * @author zhaozeyang
 * @date 1/20/21
 */
interface IRetrofitFactory {
  companion object {
    const val PREFIX_HTTP = "http://"
    const val PREFIX_HTTPS = "https://"
  }

  class RetrofitConfig(
    val url: String,
    val https: Boolean = false,
    val authorization: String? = null,
    val interceptors: List<Interceptor>? = null
  )

  fun <T> createService(clazz: Class<T>): T
}